package com.bxkc.generator.response;

/**
 * 枚举了一些常用API操作码
 *
 */
public enum ResultEnum implements ResultInterface {
    SUCCESS("SUCCESS", "操作成功"),
    FAILED("FAILED", "操作失败"),
    DATE_FORMAT_ERROR("DATE_FORMAT_ERROR","时间格式错误"),
    SYS_ERROR("SYS_ERROR", "系统内部错误");
    private String code;
    private String message;

     ResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public String getCode() {
        return code;
    }
    @Override
    public String getMessage() {
        return message;
    }


}
